package com.ztgf.order.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-07-01 15:21
 * Description:
 */
@Data
public class OrderInfoPayVO implements Serializable {

    @ApiModelProperty(value = "订单支付表id")
    private Long id;

    @ApiModelProperty(value = "金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal realPayMoney;

    @ApiModelProperty(value = "支付状态 0未付款、1支付中、2支付成功、3支付失败")
    private Integer payState;

    @ApiModelProperty(value = "期数")
    private Integer periods;

    @ApiModelProperty(value = "0余额、1网银、2票据")
    private Integer payType;

    @ApiModelProperty(value = "付款时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
}
